package com.example.bookstore.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    USER_NOT_EXIST(304, "用户不存在"),
    USER_NOT_LOGIN(203, "用户未登录"),
    PASSWORD_ERROR(303, "密码错误"),
    FILE_NOT_EXIST(401, "文件不存在"),
    USER_VALCODE_ERROT(305, "验证码错误"),
    USER_ALREADY_EXIST(501, "用户已经存在"),
    CANNOT_DELETE(504, "无法删除用户"),
    NORMAL_ERROR(306, "普通错误"),
    SERVER_ERROR(1,"服务器未知错误"),
    PASSWORD_NOTCHANGE(3,"输入密码一致");

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
